<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  
  <title>Apache配置站点的方法 | Aurthur Article</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="description" content="Apache配置方法警告：所有的配置文件不能有注释（本文所有注释即为参考之用），配置完成后必须重启Apache才会生效
基本配置
修改服务器端Apache的配置文件

1234567vi /usr/local/apache/conf/httpd.conf//centos /etc/httpd//配置文件路径NameVirtualHost *:80Include conf/vhosts">
<meta property="og:type" content="article">
<meta property="og:title" content="Apache配置站点的方法">
<meta property="og:url" content="http://aurthur.gitos.cn/Aurthur-2015/Linux-Apache-Config.html">
<meta property="og:site_name" content="Aurthur Article">
<meta property="og:description" content="Apache配置方法警告：所有的配置文件不能有注释（本文所有注释即为参考之用），配置完成后必须重启Apache才会生效
基本配置
修改服务器端Apache的配置文件

1234567vi /usr/local/apache/conf/httpd.conf//centos /etc/httpd//配置文件路径NameVirtualHost *:80Include conf/vhosts">
<meta property="og:updated_time" content="2015-12-13T05:43:12.000Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Apache配置站点的方法">
<meta name="twitter:description" content="Apache配置方法警告：所有的配置文件不能有注释（本文所有注释即为参考之用），配置完成后必须重启Apache才会生效
基本配置
修改服务器端Apache的配置文件

1234567vi /usr/local/apache/conf/httpd.conf//centos /etc/httpd//配置文件路径NameVirtualHost *:80Include conf/vhosts">
  
  
    <link rel="icon" href="/uploads/blog.ico">
  
  <link rel="stylesheet" href="/css/style.css">
</head>
<body>
  <div id="container">
    <div class="left-col">
    <div class="overlay"></div>
<div class="intrude-less">
	<header id="header" class="inner">
		<a href="/" class="profilepic">
			
			<img lazy-src="/uploads/blog.png" class="js-avatar">
			
		</a>

		<hgroup>
		  <h1 class="header-author"><a href="/">Aurthur</a></h1>
		</hgroup>

		
		<p class="header-subtitle">Aurthur Blog</p>
		

		
			<div class="switch-btn">
				<div class="icon">
					<div class="icon-ctn">
						<div class="icon-wrap icon-house" data-idx="0">
							<div class="birdhouse"></div>
							<div class="birdhouse_holes"></div>
						</div>
						<div class="icon-wrap icon-ribbon hide" data-idx="1">
							<div class="ribbon"></div>
						</div>
						
						
						<div class="icon-wrap icon-me hide" data-idx="3">
							<div class="user"></div>
							<div class="shoulder"></div>
						</div>
						
					</div>
					
				</div>
				<div class="tips-box hide">
					<div class="tips-arrow"></div>
					<ul class="tips-inner">
						<li>菜单</li>
						<li>标签</li>
						
						
						<li>关于我</li>
						
					</ul>
				</div>
			</div>
		

		<div class="switch-area">
			<div class="switch-wrap">
				<section class="switch-part switch-part1">
					<nav class="header-menu">
						<ul>
						
							<li><a href="/">主页</a></li>
				        
							<li><a href="/archives">所有文章</a></li>
				        
						</ul>
					</nav>
					<nav class="header-nav">
						<div class="social">
							
								<a class="github" target="_blank" href="https://github.com/aurthurxlc" title="github">github</a>
					        
								<a class="zhihu" target="_blank" href="https://www.zhihu.com/people/aurthur" title="zhihu">zhihu</a>
					        
								<a class="mail" target="_blank" href="/aurthurxlc@gmail.com" title="mail">mail</a>
					        
								<a class="google" target="_blank" href="https://plus.google.com/u/0/110645540964195673210" title="google">google</a>
					        
						</div>
					</nav>
				</section>
				
				
				<section class="switch-part switch-part2">
					<div class="widget tagcloud" id="js-tagcloud">
						<a href="/tags/ADB/" style="font-size: 10px;">ADB</a> <a href="/tags/API/" style="font-size: 10px;">API</a> <a href="/tags/Android/" style="font-size: 10px;">Android</a> <a href="/tags/Apache/" style="font-size: 13.33px;">Apache</a> <a href="/tags/CentOS/" style="font-size: 16.67px;">CentOS</a> <a href="/tags/Centos/" style="font-size: 10px;">Centos</a> <a href="/tags/Chkconfig/" style="font-size: 10px;">Chkconfig</a> <a href="/tags/Electron/" style="font-size: 10px;">Electron</a> <a href="/tags/FTP/" style="font-size: 10px;">FTP</a> <a href="/tags/Iterm/" style="font-size: 10px;">Iterm</a> <a href="/tags/Java/" style="font-size: 15px;">Java</a> <a href="/tags/Kernel/" style="font-size: 10px;">Kernel</a> <a href="/tags/Linux/" style="font-size: 20px;">Linux</a> <a href="/tags/Mac/" style="font-size: 11.67px;">Mac</a> <a href="/tags/Mirror/" style="font-size: 10px;">Mirror</a> <a href="/tags/Mysql/" style="font-size: 13.33px;">Mysql</a> <a href="/tags/Nginx/" style="font-size: 11.67px;">Nginx</a> <a href="/tags/PHP/" style="font-size: 18.33px;">PHP</a> <a href="/tags/RESTful/" style="font-size: 10px;">RESTful</a> <a href="/tags/Regular-Expression/" style="font-size: 10px;">Regular Expression</a> <a href="/tags/SSH/" style="font-size: 10px;">SSH</a> <a href="/tags/SSL/" style="font-size: 10px;">SSL</a> <a href="/tags/Server/" style="font-size: 11.67px;">Server</a> <a href="/tags/Terminal/" style="font-size: 10px;">Terminal</a> <a href="/tags/Ubuntu/" style="font-size: 10px;">Ubuntu</a> <a href="/tags/VPN/" style="font-size: 10px;">VPN</a> <a href="/tags/VPS/" style="font-size: 10px;">VPS</a> <a href="/tags/Vagrant/" style="font-size: 10px;">Vagrant</a> <a href="/tags/Web/" style="font-size: 11.67px;">Web</a> <a href="/tags/Windows/" style="font-size: 10px;">Windows</a> <a href="/tags/compile/" style="font-size: 10px;">compile</a> <a href="/tags/dd/" style="font-size: 10px;">dd</a> <a href="/tags/develop-tools/" style="font-size: 10px;">develop-tools</a> <a href="/tags/gitlab/" style="font-size: 10px;">gitlab</a> <a href="/tags/go/" style="font-size: 11.67px;">go</a> <a href="/tags/hook/" style="font-size: 10px;">hook</a> <a href="/tags/ntp/" style="font-size: 10px;">ntp</a> <a href="/tags/sass/" style="font-size: 10px;">sass</a> <a href="/tags/supervisor/" style="font-size: 10px;">supervisor</a> <a href="/tags/web/" style="font-size: 10px;">web</a> <a href="/tags/zimg/" style="font-size: 11.67px;">zimg</a>
					</div>
				</section>
				
				
				

				
				
				<section class="switch-part switch-part3">
				
					<div id="js-aboutme">true</div>
				</section>
				
			</div>
		</div>
	</header>				
</div>
    </div>
    <div class="mid-col">
      <nav id="mobile-nav">
  	<div class="overlay">
  		<div class="slider-trigger"></div>
  		<h1 class="header-author js-mobile-header hide">Aurthur</h1>
  	</div>
	<div class="intrude-less">
		<header id="header" class="inner">
			<div class="profilepic">
				<img lazy-src="/uploads/blog.png" class="js-avatar">
			</div>
			<hgroup>
			  <h1 class="header-author">Aurthur</h1>
			</hgroup>
			
			<p class="header-subtitle">Aurthur Blog</p>
			
			<nav class="header-menu">
				<ul>
				
					<li><a href="/">主页</a></li>
		        
					<li><a href="/archives">所有文章</a></li>
		        
		        <div class="clearfix"></div>
				</ul>
			</nav>
			<nav class="header-nav">
				<div class="social">
					
						<a class="github" target="_blank" href="https://github.com/aurthurxlc" title="github">github</a>
			        
						<a class="zhihu" target="_blank" href="https://www.zhihu.com/people/aurthur" title="zhihu">zhihu</a>
			        
						<a class="mail" target="_blank" href="/aurthurxlc@gmail.com" title="mail">mail</a>
			        
						<a class="google" target="_blank" href="https://plus.google.com/u/0/110645540964195673210" title="google">google</a>
			        
				</div>
			</nav>
		</header>				
	</div>
</nav>
      <div class="body-wrap"><article id="post-Linux-Apache-Config" class="article article-type-post" itemscope itemprop="blogPost">
  
    <div class="article-meta">
      <a href="/Aurthur-2015/Linux-Apache-Config.html" class="article-date">
  	<time datetime="2015-12-13T05:43:12.000Z" itemprop="datePublished">2015-12-13</time>
</a>
    </div>
  
  <div class="article-inner">
    
      <input type="hidden" class="isFancy" />
    
    
      <header class="article-header">
        
  
    <h1 class="article-title" itemprop="name">
      Apache配置站点的方法
    </h1>
  

      </header>
      
      <div class="article-info article-info-post">
        
	<div class="article-tag tagcloud">
		<ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Apache/">Apache</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/CentOS/">CentOS</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Linux/">Linux</a></li></ul>
	</div>

        
	<div class="article-category tagcloud">
	<a class="article-category-link" href="/categories/Web/">Web</a>
	</div>


        <div class="clearfix"></div>
      </div>
      
    
    <div class="article-entry" itemprop="articleBody">
      
        <h2 id="Apache配置方法">Apache配置方法</h2><p>警告：所有的配置文件不能有注释（本文所有注释即为参考之用），配置完成后必须重启Apache才会生效</p>
<h3 id="基本配置">基本配置</h3><ul>
<li>修改服务器端Apache的配置文件</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">vi /usr/<span class="built_in">local</span>/apache/conf/httpd.conf</span><br><span class="line"></span><br><span class="line">//centos /etc/httpd</span><br><span class="line"></span><br><span class="line">//配置文件路径</span><br><span class="line">NameVirtualHost *:80</span><br><span class="line">Include conf/vhosts</span><br></pre></td></tr></table></figure>
<a id="more"></a>
<ul>
<li>修改Apache里面站点配置文件</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">//执行命令</span><br><span class="line">mkdir /usr/<span class="built_in">local</span>/apache/conf/vhosts</span><br><span class="line">vi /usr/<span class="built_in">local</span>/apache/conf/vhosts/teigood.com.conf</span><br></pre></td></tr></table></figure>
<figure class="highlight xml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br></pre></td><td class="code"><pre><span class="line">//配置文件</span><br><span class="line"><span class="tag">&lt;<span class="name">VirtualHost</span> *<span class="attr">:80</span>&gt;</span></span><br><span class="line">    ServerAdmin admin@teigood.com</span><br><span class="line">    ServerName www.teigood.com</span><br><span class="line">    ServerAlias teigood.com</span><br><span class="line">    DocumentRoot /var/www/teigood.com</span><br><span class="line">    DirectoryIndex index.html index.htm index.php</span><br><span class="line">    ErrorLog /usr/local/apache/logs/teigood.com-error_log.log</span><br><span class="line">    CustomLog /usr/local/apache/logs/teigood.com-access_log.log common</span><br><span class="line">    ErrorDocument 404 http://www.teigood.com</span><br><span class="line">    <span class="tag">&lt;<span class="name">Directory</span> /<span class="attr">var</span>/<span class="attr">www</span>/<span class="attr">teigood.com</span>&gt;</span></span><br><span class="line">        AllowOverride All</span><br><span class="line">        Options FollowSymLinks</span><br><span class="line">        Order Deny,Allow</span><br><span class="line">        Allow from all</span><br><span class="line">    <span class="tag">&lt;/<span class="name">Directory</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;/<span class="name">VirtualHost</span>&gt;</span></span><br></pre></td></tr></table></figure>
<p>修改完毕,保存上述配置.</p>
<ul>
<li>重新启动Apache,命令如下:/usr/local/apache/bin/apachectl restart,重启后就可以正常的浏览您的网页文件</li>
</ul>
<hr>
<h3 id="多IP多端口多站点配置">多IP多端口多站点配置</h3><p>修改Apache的配置文件httpd.conf</p>
<figure class="highlight xml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br></pre></td><td class="code"><pre><span class="line">Listen 172.20.30.40:80</span><br><span class="line">Listen 172.20.30.40:8080</span><br><span class="line">Listen 172.20.30.50:80</span><br><span class="line">Listen 172.20.30.50:8080</span><br><span class="line"><span class="tag">&lt;<span class="name">VirtualHost</span> <span class="attr">172.20.30.40:80</span>&gt;</span></span><br><span class="line">    DocumentRoot /www/example1-80</span><br><span class="line">    ServerName www.example1.com</span><br><span class="line"><span class="tag">&lt;/<span class="name">VirtualHost</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;<span class="name">VirtualHost</span> <span class="attr">172.20.30.40:8080</span>&gt;</span></span><br><span class="line">    DocumentRoot /www/example1-8080</span><br><span class="line">    ServerName www.example1.com</span><br><span class="line"><span class="tag">&lt;/<span class="name">VirtualHost</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;<span class="name">VirtualHost</span> <span class="attr">172.20.30.50:80</span>&gt;</span></span><br><span class="line">    DocumentRoot /www/example2-80</span><br><span class="line">    ServerName www.example1.org</span><br><span class="line"><span class="tag">&lt;/<span class="name">VirtualHost</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;<span class="name">VirtualHost</span> <span class="attr">172.20.30.50:8080</span>&gt;</span></span><br><span class="line">    DocumentRoot /www/example2-8080</span><br><span class="line">    ServerName www.example2.org</span><br><span class="line"><span class="tag">&lt;/<span class="name">VirtualHost</span>&gt;</span></span><br></pre></td></tr></table></figure>
<hr>
<h3 id="多IP单端口多站点">多IP单端口多站点</h3><figure class="highlight xml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br></pre></td><td class="code"><pre><span class="line"><span class="tag">&lt;<span class="name">VirtualHost</span> <span class="attr">192.168.1.1:80</span>&gt;</span></span><br><span class="line">    DocumentRoot /usr/local/apache/a</span><br><span class="line">    ServerName www.a.com</span><br><span class="line">    ServerAlias a.com</span><br><span class="line">    DirectoryIndex index.html index.php</span><br><span class="line"><span class="tag">&lt;/<span class="name">VirtualHost</span>&gt;</span></span><br><span class="line"></span><br><span class="line">NameVirtualHost 192.168.1.2:80</span><br><span class="line"><span class="tag">&lt;<span class="name">VirtualHost</span> <span class="attr">192.168.1.2:80</span>&gt;</span></span><br><span class="line">    DocumentRoot /usr/local/apache/b</span><br><span class="line">    ServerName www.b.com</span><br><span class="line">    ServerAlias b.com</span><br><span class="line">    DirectoryIndex index.php</span><br><span class="line"><span class="tag">&lt;/<span class="name">VirtualHost</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;<span class="name">VirtualHost</span> <span class="attr">192.168.1.2:80</span>&gt;</span></span><br><span class="line">    DocumentRoot /usr/local/apache/c</span><br><span class="line">    ServerName www.c.com</span><br><span class="line">    ServerAlias c.com</span><br><span class="line">    DirectoryIndex index.php</span><br><span class="line"><span class="tag">&lt;/<span class="name">VirtualHost</span>&gt;</span></span><br></pre></td></tr></table></figure>
<hr>
<h3 id="单IP单端口多站点">单IP单端口多站点</h3><figure class="highlight xml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">NameVirtualHost 192.168.1.15:80 #接收请求的IP地址</span><br><span class="line"><span class="tag">&lt;<span class="name">VirtualHost</span> *<span class="attr">:80</span>&gt;</span> #绑定的ip</span><br><span class="line">    ServerAdmin test@test.com #管理员邮箱</span><br><span class="line">    DocumentRoot D:/Inetpub/www/maidou/ #网站目录</span><br><span class="line">    ServerName www.test.com #主机名（域名)</span><br><span class="line">    DirectoryIndex index.php #主目录默认页</span><br><span class="line">    ServerAlias test.other.com admin.other.com #做出响应的域名</span><br><span class="line">    ErrorLog logs/error_log.log #错误日志</span><br><span class="line">    CustomLog logs/custom.log common #用户日志</span><br><span class="line"><span class="tag">&lt;<span class="name">Directory</span> <span class="attr">D:</span>/<span class="attr">Inetpub</span>/<span class="attr">www</span>/<span class="attr">maidou</span>/&gt;</span></span><br><span class="line">    Options Indexes FollowSymLinks</span><br><span class="line">    AllowOverride All #AllowOverride指明Apache服务器是否加载.htacess</span><br><span class="line">    Order allow,deny</span><br><span class="line">    Allow from all</span><br><span class="line"><span class="tag">&lt;/<span class="name">Directory</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;/<span class="name">VirtualHost</span>&gt;</span></span><br><span class="line">#多台可以再添加</span><br><span class="line"><span class="tag">&lt;<span class="name">VirtualHost</span> *<span class="attr">:80</span>&gt;</span></span><br><span class="line">    DocumentRoot D:/Inetpub/www/other/</span><br><span class="line">    ServerName www.other.com</span><br><span class="line"><span class="tag">&lt;<span class="name">Directory</span> <span class="attr">D:</span>/<span class="attr">Inetpub</span>/<span class="attr">www</span>/<span class="attr">other</span>/&gt;</span></span><br><span class="line">Options Indexes FollowSymLinks</span><br><span class="line">    AllowOverride All</span><br><span class="line">    Order allow,deny</span><br><span class="line">    Allow from all</span><br><span class="line"><span class="tag">&lt;/<span class="name">Directory</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;/<span class="name">VirtualHost</span>&gt;</span></span><br></pre></td></tr></table></figure>
<hr>
<h2 id="Apache_URL重写">Apache URL重写</h2><p>目的：使得URL地址看起来能更舒服些</p>
<p>实现：用统一的规则来简化URL地址</p>
<p>本质：正则替换</p>
<p>适用：URL传参不是很多，且个数一致</p>
<p>具体操作如下：</p>
<figure class="highlight xml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br></pre></td><td class="code"><pre><span class="line">1. 修改apache的配置文件httpd.conf</span><br><span class="line">    1). 去掉前面的#号注释LoadModule rewrite_module modules/mod_rewrite.so</span><br><span class="line">    2).</span><br><span class="line">    <span class="tag">&lt;<span class="name">Directory</span> /&gt;</span></span><br><span class="line">        Options FollowSymLinks</span><br><span class="line">        AllowOverride None    //None改为All</span><br><span class="line">        Order deny,allow</span><br><span class="line">        Deny from all</span><br><span class="line">    <span class="tag">&lt;/<span class="name">Directory</span>&gt;</span></span><br><span class="line">2. 在相应目录下新建一“.htaccess”文件，可用editplus另存为。注意是：没有名字，后缀为htaccess。如“.htaccess”在web根目录下则对所有链接有效。</span><br><span class="line">3. 编写“.htaccess”</span><br><span class="line">    rewriteengine on  #开启引擎</span><br><span class="line">    RewriteRule ^test/(\w+)$ test.php?var=$1    </span><br><span class="line">    RewriteRule ^test/(\w+)-(\w+)$ test.php?$1=$2</span><br><span class="line">    RewriteRule ^\d+$ test.php</span><br><span class="line"></span><br><span class="line">对应test.php</span><br><span class="line"><span class="php"><span class="meta">&lt;?php</span></span><br><span class="line">   var_dump($_GET);</span><br><span class="line"><span class="meta">?&gt;</span></span></span><br><span class="line"></span><br><span class="line">如报错“Internal Server Error”，先检查apache的rewrite是否开启，然后检查“.htaccess”是否有语法错误，如“RewriteRule ^\8+$ test.php”就会报此错。</span><br><span class="line"></span><br><span class="line">或加上以下：</span><br><span class="line"></span><br><span class="line"><span class="tag">&lt;<span class="name">IfModule</span> <span class="attr">mod_rewrite.c</span>&gt;</span></span><br><span class="line"> RewriteEngine On</span><br><span class="line"> <span class="tag">&lt;/<span class="name">IfModule</span>&gt;</span></span><br></pre></td></tr></table></figure>

      
    </div>
    
  </div>
  
    
<nav id="article-nav">
  
    <a href="/Aurthur-2015/Mysql-Log-Cache.html" id="article-nav-newer" class="article-nav-link-wrap">
      <strong class="article-nav-caption"><</strong>
      <div class="article-nav-title">
        
          解决WEB环境Mysql-bin数据库日志文件占用硬盘资源
        
      </div>
    </a>
  
  
    <a href="/Aurthur-2015/Iterm2-config.html" id="article-nav-older" class="article-nav-link-wrap">
      <div class="article-nav-title">Iterm2配置</div>
      <strong class="article-nav-caption">></strong>
    </a>
  
</nav>

  
</article>






</div>
      <footer id="footer">
  <div class="outer">
    <div id="footer-info">
    	<div class="footer-left">
    		&copy; 2016 Aurthur
    	</div>
      	<div class="footer-right">
      		<a href="http://hexo.io/" target="_blank">Hexo</a>  Theme <a href="https://github.com/litten/hexo-theme-yilia" target="_blank">Yilia</a> by Litten
      	</div>
    </div>
  </div>
</footer>
    </div>
    
  <link rel="stylesheet" href="/fancybox/jquery.fancybox.css">


<script>
	var yiliaConfig = {
		fancybox: true,
		mathjax: true,
		animate: true,
		isHome: false,
		isPost: true,
		isArchive: false,
		isTag: false,
		isCategory: false,
		open_in_new: false
	}
</script>
<script src="/js/jquery-1.9.1.min.js"></script>
<script src="/js/main.js"></script>






<script type="text/x-mathjax-config">
MathJax.Hub.Config({
    tex2jax: {
        inlineMath: [ ['$','$'], ["\\(","\\)"]  ],
        processEscapes: true,
        skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
    }
});

MathJax.Hub.Queue(function() {
    var all = MathJax.Hub.getAllJax(), i;
    for(i=0; i < all.length; i += 1) {
        all[i].SourceElement().parentNode.className += ' has-jax';                 
    }       
});
</script>

<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>


  </div>
</body>
</html>